package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.WxCustUser;
import com.rentong.wx.cust.dto.AddInsertInformationDto;
import com.rentong.wx.cust.dto.WxCustUserDto;
import com.rentong.wx.sys.domain.SysConfCaixiEntity;
import com.rentong.wx.sys.domain.SysConfShopTypeEntity;
import com.rentong.wx.sys.domain.SysServiceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import scala.Int;
import tk.mybatis.mapper.common.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: zhangle
 * @Description:
 * @Date: 2018/5/7 17:42
 */
@Mapper
public interface WxCustUserMapper extends BaseMapper<WxCustUser> {
    void loginUser(WxCustUser wxCustUser);

    void updateBalance(WxCustUser wxCustUser);

    WxCustUserDto getUserByCustId(@Param("custId") Long custId);

    WxCustUserDto getUserInfo(WxCustUser wxCustUser);

    void updatePhone(@Param("phone") String phone, @Param("custId") Long custId);

    List<WxCustUser> selectList(List<Long> custUserIDList);

    int updateInformation(AddInsertInformationDto addInsertInformationDto);

    List<WxCustUserDto> getChefList(WxCustUserDto wxCustUserDto);

    SysConfShopTypeEntity shopName(String shopTypeId);

    SysConfCaixiEntity selectCaixiName(String caixiId);

    List<SysServiceEntity> selectTypeIds(Long custId);

    SysServiceEntity selectServiceLableName(Long serviceId);

    int deductBalance(@Param("custId") Long custId, @Param("tixianAmount") BigDecimal tixianAmount);

    Integer getCustUserTotalNum();

    WxCustUser getUserInfoByCustId(@Param("custId") Long custId);

    void updateAmount(@Param("amount") BigDecimal amount, @Param("custId") Long custId);

    WxCustUserDto getChefDetailChefInfo(WxCustUserDto wxCustUserDto);


    void updatePingJiaNum(@Param("chefId") Long chefId, @Param("i") int i);
}

